<template>
  <div class="details-content">
    <div class="user-info">
      <p class="title">个人信息</p>

      <div class="info-dex">
        <div class="photo">超管</div>
        <div class="name">
          <p>超管</p>
          <p>总部 | 知识库管理</p>
        </div>

        <div class="account">
          <p>坐席账号: admin</p>
          <p>坐席分机号: 1001</p>
        </div>
      </div>
    </div>

    <div class="pass-info">
      <p class="title">接通率</p>

      <p class="tip">呼入接通率 (呼入频道13/呼入总数17)</p>
      <Progress :percent="90" stroke-width="24px" :stroke-color="['#87d068', '#108ee9']" />

      <p class="tip">呼出接通率 (呼出频道2/呼出总数2)</p>
      <Progress :percent="90" stroke-width="24px" :stroke-color="['#87d068', '#108ee9']" />
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted, onBeforeUnmount } from 'vue'
</script>

<style scoped lang="scss">
.details-content {
  .user-info,
  .pass-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px 16px 32px;
  }
  .title {
    font-weight: bold;
  }
  .user-info {
    margin-bottom: 8px;
    .info-dex {
      display: flex;
      align-items: center;
      margin-top: 16px;
      .photo {
        background-color: #5f6d7e;
        font-size: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-weight: bold;
        border-radius: 50%;
        width: 80px;
        height: 80px;
      }
      .name{
        margin:0 24px 0 8px;
        p:nth-child(2) {
          color: #666;
        }
      }
    }
  }
  .pass-info {
    .title{
      padding-bottom: 16px;
    }
    .tip {
      margin-top: 8px;
    }
  }
}
</style>
